Version

IndexOf Method (PageBreakCollection<T>)

Gets the 0-based index of the specified page break.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal pageBreak As T _
) As Integer
public int IndexOf( 
   T pageBreak
)

Parameters

pageBreak
The page break for which the index should be obtained.

Return Value

The 0-based index of the page break or -1 if the page break is no tin the collection.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionOccurs when pageBreak is null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also